﻿//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Workflow
//  File name:	WorkflowRulesService.cs
//  Developer:	Solomatov Igor
//  Created:	16.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using Smart.Common.Rules;

namespace Smart.Workflow.Rules
{
	/// <summary>
	/// Workflow rules service
	/// </summary>
	public class WorkflowRulesService : RulesService
	{
		/// <summary>
		/// Create rule executor
		/// </summary>
		/// <returns>Rule executor</returns>
		public override RuleExecutor CreateExecutor()
		{
			return new WorkflowRuleExecutor(Ctx);
		}

		/// <summary>
		/// Create rule checker
		/// </summary>
		/// <returns>Rule checker</returns>
		public override RuleChecker CreateChecker()
		{
			return new WorkflowRuleChecker(Ctx);
		}

		/// <summary>
		/// Create rules source
		/// </summary>
		/// <returns>Rules source</returns>
		public override RulesSource CreateSource()
		{
			return new WorkflowRulesSource(Ctx);
		}
	}
}